home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Full / Paragon Drive Backup 9 / DB90_SE_x64.msi / Data1.cab / _61D15A0936CF4A52B827DBEE7327E438 < prev    next >
Extensible Markup Language  |  2008-10-24  |  6KB  |  149 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <xsl:stylesheet 
  4.   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.   xmlns:msxsl="urn:schemas-microsoft-com:xslt"
  6.   version="1.0">
  7.  
  8. <xsl:output 
  9.   method="text" 
  10.   encoding="UTF-8" 
  11.   omit-xml-declaration="yes" 
  12.   indent="no"/>
  13.  
  14. <xsl:strip-space elements="*"/>
  15.  
  16. <xsl:template name="SrcTgtDescription">
  17.   <xsl:param name="Node"/>
  18.   <xsl:choose>
  19.     <xsl:when test="$Node/disk">QT_TRANSLATE_NOOP("QObject", "Hard Disk") <xsl:value-of select="$Node/disk/param[@name='number']/@valuedescription"/>
  20.     </xsl:when>
  21.   
  22.     <xsl:when test="$Node/partition">
  23.       <xsl:choose>
  24.         <xsl:when test="normalize-space($Node/partition/param[@name='letter']/@valuedescription)">QT_TRANSLATE_NOOP("QObject", "Volume") <xsl:value-of select="$Node/partition/param[@name='letter']/@valuedescription"/> QT_TRANSLATE_NOOP("QObject", "on hard disk") <xsl:value-of select="$Node/partition/param[@name='disk']/@valuedescription"/>
  25.         </xsl:when>
  26.         <xsl:otherwise>QT_TRANSLATE_NOOP("QObject", "Unmounted volume") <xsl:value-of select="$Node/partition/param[@name='number']/@valuedescription"/> QT_TRANSLATE_NOOP("QObject", "on hard disk") <xsl:value-of select="$Node/partition/param[@name='disk']/@valuedescription"/>
  27.               </xsl:otherwise>  
  28.       </xsl:choose>
  29.     </xsl:when>
  30.   
  31.     <xsl:when test="$Node/archive">QT_TRANSLATE_NOOP("QObject", "Archive") "<xsl:value-of select="$Node/archive/param[@name='archivename']/@valuedescription"/>"</xsl:when>
  32.   
  33.   </xsl:choose>
  34. </xsl:template>
  35.  
  36. <xsl:template name="TextDetails">
  37. <xsl:text>****************************************** </xsl:text>
  38. <xsl:value-of select="@description"/><xsl:text> </xsl:text>
  39.  
  40. <xsl:if test="source">
  41.     QT_TRANSLATE_NOOP("QObject", "Source:")
  42.     <xsl:text> </xsl:text><xsl:call-template name="SrcTgtDescription">
  43.         <xsl:with-param name="Node" select="source"/>
  44.     </xsl:call-template>
  45.     <xsl:text> </xsl:text>
  46. </xsl:if>
  47.  
  48. <xsl:if test="target">
  49.     QT_TRANSLATE_NOOP("QObject", "Target:")
  50.     <xsl:text> </xsl:text><xsl:call-template name="SrcTgtDescription">
  51.         <xsl:with-param name="Node" select="target"/>
  52.     </xsl:call-template>
  53.     <xsl:text> </xsl:text>
  54. </xsl:if>
  55.  
  56. <xsl:if test="params">
  57.     QT_TRANSLATE_NOOP("QObject", "Parameters:")
  58.     <xsl:for-each select="params/param">
  59.     <xsl:text> </xsl:text><xsl:value-of select="@description"/>: <xsl:value-of select="@valuedescription"/><xsl:text> </xsl:text><xsl:text> </xsl:text>
  60.     </xsl:for-each>
  61. </xsl:if>
  62.  
  63. <xsl:if test="error">
  64.     <xsl:text> </xsl:text>QT_TRANSLATE_NOOP("QObject", "The operation has failed:")
  65.     <xsl:text> </xsl:text><xsl:value-of select="error/@description"/> (<xsl:value-of select="error/@code"/>)
  66. </xsl:if>
  67. <xsl:text> </xsl:text>
  68.  
  69. </xsl:template>
  70.  
  71. <xsl:template name="HTMLDetails">
  72.  
  73.   <li>
  74.     <h4><xsl:value-of select="@description"/></h4>
  75.       
  76.       <xsl:if test="source">
  77.           <b>QT_TRANSLATE_NOOP("QObject", "Source:")</b><br/>
  78.           <xsl:call-template name="SrcTgtDescription">
  79.             <xsl:with-param name="Node" select="source"/>
  80.           </xsl:call-template>
  81.       <br/>
  82.       </xsl:if>
  83.  
  84.       <xsl:if test="target">
  85.           <b>QT_TRANSLATE_NOOP("QObject", "Target:")</b><br/>
  86.           <xsl:call-template name="SrcTgtDescription">
  87.             <xsl:with-param name="Node" select="target"/>
  88.           </xsl:call-template>
  89.             <br/>
  90.       </xsl:if>
  91.  
  92.         <xsl:if test="params">
  93.         <b>QT_TRANSLATE_NOOP("QObject", "Parameters:")</b><br/>
  94.         <xsl:for-each select="params/param">
  95.           <xsl:value-of select="@description"/>: <xsl:value-of select="@valuedescription"/><br/>
  96.         </xsl:for-each>
  97.         </xsl:if>
  98.   </li>
  99.   
  100.   <br/>
  101.   <xsl:if test="error">
  102.     <b>QT_TRANSLATE_NOOP("QObject", "The operation has failed:")</b>
  103.     <xsl:value-of select="error/@description"/> (<xsl:value-of select="error/@code"/>)
  104.  
  105.   </xsl:if>
  106.  
  107. </xsl:template>
  108.  
  109. <xsl:template match="/report">
  110.  
  111. QT_TRANSLATE_NOOP("QObject", "Full E-mail notification report.")
  112.  
  113. ----------------------------------------------------------------------------------
  114. QT_TRANSLATE_NOOP("QObject", "System info:")
  115. ----------------------------------------------------------------------------------
  116.  
  117. QT_TRANSLATE_NOOP("QObject", "Computer Name: ")<xsl:value-of select="computer"/>
  118. <xsl:text> </xsl:text><xsl:value-of select="OS"/>
  119.  
  120. ----------------------------------------------------------------------------------
  121. QT_TRANSLATE_NOOP("QObject", "Summary:")
  122. ----------------------------------------------------------------------------------
  123.  
  124. QT_TRANSLATE_NOOP("QObject", "Generated: ")<xsl:value-of select="generated"/><xsl:text> </xsl:text>
  125.  
  126. <xsl:choose>
  127. <xsl:when test="error">
  128. QT_TRANSLATE_NOOP("QObject", "Not the all operations have been applied.")
  129. QT_TRANSLATE_NOOP("QObject", "The following error had occured: ")<xsl:value-of select="error/@description"/> (<xsl:value-of select="error/@code"/>)
  130. </xsl:when>
  131. <xsl:otherwise>
  132. QT_TRANSLATE_NOOP("QObject", "All operations have been applied successfully.")
  133. </xsl:otherwise>
  134. </xsl:choose>
  135. ----------------------------------------------------------------------------------
  136. QT_TRANSLATE_NOOP("QObject", "The following operations have been performed:")
  137. ----------------------------------------------------------------------------------
  138.  
  139. <xsl:for-each select="action[@type='physical']">
  140.   <xsl:call-template name="TextDetails"/>
  141. </xsl:for-each>
  142. ----------------------------------------------------------------------------------
  143. QT_TRANSLATE_NOOP("QObject", "You have requested full e-mail reports from Drive BackupΓäó")
  144. QT_TRANSLATE_NOOP("QObject", "Please change e-mail options to get short reports or to stop getting the reports.")
  145.  
  146. </xsl:template>
  147.  
  148. </xsl:stylesheet>
  149.